import { createNamespacedHelpers } from "vuex";

function mixinsList(moduleName) {
    const { mapState, mapActions } = createNamespacedHelpers(moduleName);
    return {
        data() {
            return {
                pageData: {
                    pageSize: 3,
                    currentPage: 1,
                },
            };
        },
        computed: {...mapState(["rows"]) },
        created() {
            this.getDataAsync(this.pageData);
        },
        methods: {
            ...mapActions(["getDataAsync", 'deleteOnceData']),
        },
    };
}
export default mixinsList;